package com.jiazhong.boot.rocketmq.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Slf4j
@RocketMQMessageListener(topic = "TopicC", consumerGroup = "abcdefg", selectorExpression = "transaction")
@Component
public class MyConsumer2Listener implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        log.info("s:{}", s);
    }
}
